import request from '@/utils/request'


// 查询问题列表
export function listQuestion(params) {
  return request({
    url: '/console/qa',
    method: 'get',
    params: params
  })
}

//新增问题
export function addQuestion(data) {
  return request({
    url: '/console/qa/add',
    method: 'post',
    data: data
  })
}

//修改问题
export function editQuestion(data) {
  return request({
    url: '/console/qa/update',
    method: 'post',
    data: data
  })
}

//查询单条数据
export function getQuestion(params) {
  return request({
    url: '/console/qa/getById',
    method: 'get',
    params: params
  })
}

//删除数据
export function deleteQuestion(data) {
  return request({
    url: '/console/qa/delete',
    method: 'post',
    data: data
  })
}